namespace CSharpPro._1014;

public class Student
{
    // 字段
    private string name;
    private int age;
    private string studentId;
    private string major;
    private double gpa;

    // 默认构造函数
    public Student()
    {
    }

    public Student(string name, int age, string studentId, string major, double gpa)
    {
        this.name = name;
        this.age = age;
        this.studentId = studentId;
        this.major = major;
        this.gpa = gpa;
    }

    public void Sleep(String name)
    {
        Console.WriteLine(name,"Sleeping...");
    }
}